package com.zhixiang.xaec.service.performance.safeachievements.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zhixiang.core.dao.BaseDao;
import com.zhixiang.core.service.impl.BaseServiceImpl;
import com.zhixiang.xaec.dao.performance.safeachievements.RatingProjectSetDao;
import com.zhixiang.xaec.entity.performance.safeachievements.RatingProjectSet;
import com.zhixiang.xaec.service.performance.safeachievements.RatingProjectSetService;

@Service
public class RatingProjectSetServiceImpl extends BaseServiceImpl<RatingProjectSet, Long> implements RatingProjectSetService{
    
    @Resource(type=RatingProjectSetDao.class)
    public void setBaseDao(BaseDao<RatingProjectSet, Long> dao)
    {
        setDao(dao);
    }

    @Override
    public List<RatingProjectSet> getAllByTreeId(Long RatingProjectSetTreeId) {
        List<RatingProjectSet> ratingProjectSet=getDao().findByHql("from RatingProjectSet where ratingProjectSetTreeId=?", new Object[]{RatingProjectSetTreeId});
        return ratingProjectSet;
    }
}
